package com.app.mapper;

import com.app.model.VillageFairModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface VillageFairMapper extends BaseMapper<VillageFairModel> {
    List<VillageFairModel> getFairList(Integer page, Integer limit, String keyword, Integer type, Integer status, Integer township);

    List<VillageFairModel> selectFairList(Integer page, Integer limit, String keyword, Integer type, Integer township);

    int getFairCount(String keyword, Integer type, Integer status);

    int selectFairCount(String keyword, Integer type);
}
